<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>添加商品属性值页面</title>
	<style>
		input{border:none;background-color:#E0FFFF; height: 40px; }
	</style>
</head>
<link rel="stylesheet" href="{{ asset('admin_style/css/pintuer.css') }}">
   <link rel="stylesheet" href="{{ asset('admin_style/css/admin.css') }}">
<link rel="stylesheet" href="{{asset('admin_style/css/style.css')}}">
<link rel="stylesheet" href="{{ asset('admin_style/js/umeditor/themes/default/css/umeditor.css')}}">
<div class="panel-head"><strong class="icon-reorder"> 商品属性添加</strong></div>
<body>
	<form action="{{ url('goods/DoAttr')}}" method="post">
		属性值：<input type="text" name="attr_value[]" size="50px" placeholder="请填写属性值" ><span id="add">[+]</span>
		<div class="aa"></div>
		<input type="hidden" name="id" value="{{$id}}">
		<input type="hidden" name="_token" value="{{ csrf_token()}}">
		<input type="submit" value="添加" class="button bg-green">
    	<input type="reset" name="button" id="button" value="重置" class="button bg-red">
	</form>
</body>
</html>
<script type="text/javascript" src="{{asset('admin_style/js/jquery.js')}}"></script>
<script>
	$('#add').click(function(){
		str = '<span id="dd">属性值：<input type="text" name="attr_value[]" size="50px" placeholder="请填写属性值" ><span id="del">[-]</span><br /></span>';
		$('.aa').append(str);
	});
	$('.aa').on('click','#del',function(){
		$('#dd').remove();
	});
</script>